cmake_minimum_required(VERSION 3.27)
# 显式声明支持 C 和 C++
project(c_study C CXX)
# 设置 C 标准
set(CMAKE_C_STANDARD 99)
# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 20)

#add_executable(c_study main.cpp)

add_executable(01-c-hello chapter01/01-c-hello.c)
add_executable(02-c-variables_01 chapter01/02-c-variables_01.c)
add_executable(02-c-variables_02 chapter01/02-c-variables_02.c)
add_executable(03-c-array chapter01/03-c-array.c)
add_executable(04-c-point chapter01/04-c-point.c)
add_executable(05-c-point-array chapter01/05-c-point-array.c)
add_executable(06-c-fun chapter01/06-c-fun.c)
add_executable(07-c-struct chapter01/07-c-struct.c)
add_executable(08-c-sys-fun chapter01/08-c-sys-fun.c)
add_executable(09-c-file chapter01/09-c-file.c)
add_executable(01-cxx-hello chapter02/01-cxx-hello.cpp)

